getApp();

Page({
    data: {
        captchaOpt1: {
            baseUrl: "http://ap1983.nat300.top",
            mode: "fixed",
            captchaType: "blockPuzzle",
            imgSize: {
                width: "295px",
                height: "147px"
            },
            barHeight: "32px",
            vSpace: 5,
            success: function(o) {
                console.log(o), console.log("验证成功"), wx.showToast({
                    title: "验证成功",
                    icon: "success",
                    duration: 1e3
                });
            },
            fail: function(o) {
                console.log("失败响应"), console.log(o);
            }
        },
        captchaOpt2: {
            baseUrl: "https://captcha.anji-plus.com/captcha-api",
            mode: "pop",
            captchaType: "blockPuzzle",
            imgSize: {
                width: "295px",
                height: "147px"
            },
            barHeight: "32px",
            vSpace: 5,
            success: function(o) {
                console.log("验证成功"), wx.showToast({
                    title: "验证成功",
                    icon: "success",
                    duration: 1e3
                });
            },
            fail: function(o) {
                console.log("失败响应"), console.log(o);
            }
        }
    }
});